<?php echo form_open_multipart('blog/add_blog')?>
<div id="register" align="center">
    <div align="center" id="title_viewreg" >Ajouter nouveau blog</div>
    <table id="add_Blog" cellpadding="10px" cellspacing="0">
        <tr>
            <td><label for="blog_name">Nom <font color="red">*</font></label></td>
            <td><input type="text" name="blog_name" size="40" value="<?php echo set_value('blog_name'); ?>" id="blog_name"/>
            <?php echo form_error('blog_name')?></td>
        </tr>
        <tr>
            <td>Description <font color="red">*</font></td>
            <td colspan="2">
                <?php
                    $data = array('name' => 'blog_description',
                    'id' => 'blog_description',
                    'width' => '410',
                    'height' => '350',
                    'value' => '',
                    'type' =>'text'
                    );
                    echo form_fckeditor($data);
                ?>
            </td>
        </tr>
        <tr>
            <td><label for="blog_description">Image<font color="red">*</font></label></td>
            <td><input type="file" name="userfile" id="userfile" size="30"/></td>
        </tr>
        <tr>
            <td><input type="submit" name="submit" id="submit" value="Add"/></td>
        </tr>
    </table>
</div>
<?php echo form_close() ?>
